Total Complexity | 63 |
Dependencies | 4 |
Dependents | 2 |
Total lines | 330 |
Lines of code | 133 |
Logical lines of code | 68 |
Comment lines | 116 |
Methods | 24 |
Properties | 15 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
isValidForBookingContents() | 45 | 18 | 39 | |
__construct() | 52 | 12 | 19 | |
validate() | 57 | 9 | 15 | |
isExceedUsageLimit() | 79 | 2 | 3 | |
isApplicableForRoomType() | 78 | 2 | 3 | |
isExpired() | 78 | 2 | 3 | |
getMaxNights() | 83 | 1 | 3 | |
increaseUsageCount() | 82 | 1 | 3 | |
getUsageCount() | 82 | 1 | 3 | |
isPublished() | 80 | 1 | 3 | |
getUsageLimit() | 83 | 1 | 3 | |
getMinNights() | 83 | 1 | 3 | |
getId() | 83 | 1 | 3 | |
getMaxDaysBeforeCheckIn() | 83 | 1 | 3 | |
getMinDaysBeforeCheckIn() | 83 | 1 | 3 | |
getCheckOutDateBefore() | 83 | 1 | 3 | |
getCheckInDateAfter() | 83 | 1 | 3 | |
getRoomTypes() | 83 | 1 | 3 | |
getExpirationDate() | 83 | 1 | 3 | |
getAmount() | 83 | 1 | 3 | |
getDescription() | 83 | 1 | 3 | |
getCode() | 83 | 1 | 3 | |
getStatus() | 83 | 1 | 3 | |
calcRoomDiscount() | 100 | 1 | 0 |